<?php
define('ROOT',dirname($_SERVER['SCRIPT_FILENAME']));
require_once ROOT.'/core/yckit.base.php';
class front extends base{
	public function __construct(){
		$this->compatible();
		$this->template->template_dir='core/themes/'.$this->theme;
		$this->template->in('config',$this->config);
		$this->template->in('path',PATH);
		$this->set_interface();
		if($this->action!=''){
			require_once ROOT.'/core/modules/'.$this->action.'/front.index.php';
		}else{
			http_301();
		}
	}
}
new front();